package com.job.zhaokaiqiang.duotai0709;

import java.util.Scanner;

/**
 * @author DELL
 * @version 1.0
 * @since 2022-07-11 22:12:28
 */
public class Test {
    public static void main(String[] args) {
        Diannao diannao;
        System.out.println("请选择1.手机 2.平板电脑");
        Scanner sc = new Scanner(System.in);
        String next = sc.next();
        if("1".equals(next))
        {
            diannao =new Cellphone();
        }
        else
        {
            diannao =new Pingban();
        }
        diannao.youxi();
    }
}
